<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<script type="text/javascript" charset="utf-8"
	src="js/libs/editor/ueditor.config.js"></script>
<script type="text/javascript" src="js/libs/editor/ueditor.js"></script>

<form:form commandName="model" cssClass="validate"
	action="announcement/announcement/save">
	<form:hidden path="id" />
	<div class="header">
		<h2>
			&nbsp;&nbsp;公告信息<span><font color="red">（* 为必填项）</font> </span>
		</h2>
	</div>

	<table class="form-table">
		<tbody>

			<tr>
				<td class="td1">标题：</td>
				<td class="td2"><form:input path="title" cssClass="required"
						maxlength="200" cssStyle="width:80%" /></td>
			</tr>
			<tr>
				<td class="td1">内容：</td>
				<td class="td2"><form:textarea path="contents"
						cssStyle="height:200px;width:90%" cssClass="editor required" />
				</td>
			</tr>
			<tr>
				<td class="td1">有效日期至：</td>
				<td class="td2"><input id="effectiveDate" name="effectiveDate"
				value="${model.effectiveDate }" class="" type="datetime">
				</td>
			</tr>
			<tr>
				<td class="td1">重要程度：</td>
				<td class="td2">
				<form:radiobuttons path="importanceLevel"
						 items="${importanceLevel}" itemLabel="name"
						itemValue="code" />
				</td>
			</tr>
			<tr>
				<td class="td1">状态：</td>
				<td class="td2"><form:radiobuttons path="status"
						 items="${status}" itemLabel="name"
						itemValue="code" /></td>
			</tr>
			<tr>
				<td class="td1">附件：
				<td class="td2"><isperp:uploader sourceId="${model.id }"
						id="knowledgeItemFiles"></isperp:uploader>
				</td>
			</tr>
		</tbody>
	</table>


</form:form>
<isperp:buttonList>
	<button class="submit" onclick="isperp.submitForm({success:function(){isperp.alert(111);}});return false;">
		<span class="icon icon-save"></span>保存
	</button>

</isperp:buttonList>

<script type="text/javascript">
	UE.getEditor('contents');
</script>